package org.aeon.gamechatnest.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.aeon.gamechatnest.common.enumeration.LoginStatus;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户视图（用于前端展示用户信息）
 *
 * @author : Qik 2024/5/10 16:05
 */
@Schema(description = "用户视图", name = "UserVO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * /**
     * 用户id
     */
    @Schema(description = "用户id", name = "userId")
    private Long userId;
    /**
     * 昵称
     */
    @Schema(description = "昵称", name = "nickname")
    private String nickname;
    /**
     * 头像
     */
    @Schema(description = "头像", name = "avatar")
    private String headImage;
    /**
     * token
     */
    @Schema(description = "token", name = "token")
    private String token;
    /**
     * 状态
     */
    @Schema(description = "状态", name = "status")
    private LoginStatus status;
}
